/**
 * Copyright (C), 2015-2020, 云帐房
 * FileName: AbstractRemoveDataSource
 * Author:   cjz
 * Date:     2020/5/14 上午10:56
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.yzf.wisecoder.remotedata;

import org.apache.poi.ss.formula.functions.T;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/**
 * @ClassName : AbstractRemoveDataSource
 * @Description : 获取数据类
 * @Author : cjz
 * @Date: 2020-05-14 10:56
 */
public abstract class AbstractRemoteDataSource implements RemoteDataSource {


    protected RemoteInfo remoteInfo;
    protected Object result;

    protected Map<String,Object> maps = new LinkedHashMap<>();

    public AbstractRemoteDataSource(RemoteInfo remoteInfo) {
        this.remoteInfo = remoteInfo;
    }

    @Override
    public abstract AbstractRemoteDataSource execute();

    @Override
    public abstract List<Map> result();
}
